import request from '@/utils/request';
import { parseStrEmpty } from "@/utils/frameWork";
// 协同任务列表
export function listcollaboration(query) {
  return request({
    url: '/supervision/collaboration/list',
    method: 'get',
    params: query
  })
}

// 待处理协同任务列表
export function listwaitCollaboration(query) {
  return request({
    url: '/supervision/collaboration/waitList',
    method: 'get',
    params: query
  })
}

// 已处理协同任务列表
export function listDoneCollaboration(query) {
  return request({
    url: '/supervision/collaboration/doneList',
    method: 'get',
    params: query
  })
}

// 查询业务协同详情
export function getInfo(id) {
  return request({
    url: '/supervision/collaboration/' + parseStrEmpty(id),
    method: 'get'
  })
}
// 新增业务协同
export function addColl(data) {
  return request({
    url: '/supervision/collaboration/add',
    method: 'post',
    data: data
  })
}
//删除业务协同
export function delColl(id) {
  return request({
    url: '/supervision/collaboration/' + id,
    method: 'delete'
  })
}
// 修改业务协同
export function updateColl(data) {
  return request({
    url: '/supervision/collaboration/update',
    method: 'post',
    data: data
  })
}
// 处置业务协同
export function dealColl(data) {
  return request({
    url: '/supervision/collaboration/deal',
    method: 'post',
    data: data
  })
}
// 新增业务协同下拉列表
export function listTask(query) {
  return request({
    url: '/supervision/task/getUserTask',
    method: 'get',
    params: query
  })
}